﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1
{
    /// <summary>
    /// Bar类
    /// </summary>
    class Bar
    {
        public Rectangle Rectangle;
        public Bar()
        { 
            new Rectangle(350,200, 20,20);
        }
        /// <summary>
        /// 绘制Bar
        /// </summary>
        /// <param name="g"></param>
        public void Draw(Graphics g)
        {
            g.FillRectangle(new SolidBrush(Color.Silver), Rectangle);
        }
    }
}
